import Vue from "vue";
import App from "./App.vue";
import "@/assets/css/index.css";
import "amfe-flexible/index.js";
import "@/assets/fonts/iconfont.css"; //全局引入iconfont文件(.vue文件里使用就不需要再次引入了)
import router from "./router/index";
import store from "./store/index";
import "@/assets/css/reset.css";
Vue.prototype.rule = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/;
import {
  Icon,
  Button,
  Row,
  Col,
  Field,
  Swipe,
  SwipeItem,
  Search,
  Tabbar,
  TabbarItem,
  Loading,
  Lazyload,
  NavBar,
  Notify,
  Toast,
  Image,
  AddressList,
  AddressEdit,
  Area,
  Popup
} from "vant";

Vue.use(Icon)
  .use(Button)
  .use(Row)
  .use(Col)
  .use(Field)
  .use(Swipe)
  .use(SwipeItem)
  .use(Search)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Loading)
  .use(Lazyload)
  .use(NavBar)
  .use(Notify)
  .use(Toast)
  .use(Image)
  .use(AddressList)
  .use(AddressEdit)
  .use(Area)
  .use(Popup);
Vue.config.productionTip = false;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
